package com.xjust.service.impl;

import com.xjust.Mapper.CheckResultMapper;
import com.xjust.Mapper.InspectionResultMapper;
import com.xjust.service.InspectionResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Service
public class InspectionResultServiceImpl implements InspectionResultService {
    @Autowired
    private InspectionResultMapper inspectionResultMapper;

    @Override
    public List<Map<String, Object>> getInspectionResult(String tech_code, String tech_name, String tech_format, BigDecimal tech_price, String inspection_state, String price_type,Integer inspection_employee_id) {
        return inspectionResultMapper.getInspectionResultByCondition(tech_code,tech_name,tech_format,tech_price,inspection_state,price_type,inspection_employee_id);
    }

    @Override
    public List<Map<String, Object>> getInspectionRequest(LocalDateTime creation_time, Integer inspection_employee_id, String inspection_position, String inspection_info, String inspection_remark, String inspection_result, LocalDateTime inspection_time) {
        return inspectionResultMapper.getInspectionRequestByCondition(creation_time,inspection_employee_id,inspection_position,inspection_info,inspection_remark,inspection_result,inspection_time);
    }
}
